package com.waitingresult.designpattern.behavioral.template.demo3;

/**
 * @Author: WangShuai
 * @CreateTime: 2023-10-21  12:04
 * @Description:
 * @Version: 1.0
 */
public class UserInsertTemplate extends AbsInsertTemplate {
    @Override
    Integer type() {
        return 2;
    }

    @Override
    void method1() {
        System.err.println("UserInsertTemplate.method1: 不做任何处理");
    }

    @Override
    void method2() {
        System.err.println("UserInsertTemplate.method2: 直接保存到数据库");
    }
}
